<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>我的信息</title>
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/css/baojia.css" />
		<!--<link rel="stylesheet" type="text/css" href="css/base.min.css" />
		<link rel="stylesheet" type="text/css" href="css/common.css" />-->
		<link rel="stylesheet" type="text/css" href="{:_SKIN}/user/layui/css/layui.css" />
		
		<style type="text/css">
			.layui-form {
				width: 60%;
			}
			
			.layui-table tr:hover,
			.layui-table[lay-even] tr:nth-child(even) {
				background: #FFFFFF;
			}
			
			.layui-table,
			.layui-table th {
				text-align: center;
			}
			
			.layui-table {
				margin-top: 20px;
			}
			
			.btn {
				background: #ff6600;
				width: 250px;
				margin-top: 10px;
			}
			
			.add {
				width: 90%;
				z-index: 999;
			}
			
			.aqq {
				position: relative;
			}
			
			.aq-1 {
				right: 48px;
			}
			
			.aq-2 {
				left: -97px;
			}
			
			.layui-form-select dl {
				min-width: 100%;
			}
			
			.layui-table td,
			.layui-table th {
				padding: 5px 25px;
			}
		</style>
	</head>

	<body>
		<div class="content">
			<div class="titlebar">
				<div class="titlebar-name">我的信息</div>
			</div>

			<form class="layui-form" id="bd1"  method="post">
				<table class="layui-table" lay-even lay-skin="nob">
					<colgroup>
						<col width="150">
						<col width="200">
						<col>
					</colgroup>
					<tbody>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">账号：</label>
									<div class="layui-input-block">
										<input type="text"  disabled    autocomplete="off" class="layui-input" value="{$t.Name}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">手机号：</label>
									<div class="layui-input-block">
										<input type="text" disabled  autocomplete="off" class="layui-input" value="{$t.Mobile}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">昵称：</label>
									<div class="layui-input-block">
										<input type="text" name="NickName" required lay-verify="required" placeholder="请输入您的姓名" autocomplete="off" class="layui-input" value="{$t.NickName}">
									</div>
								</div>
							</td>
						</tr>

						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">QQ：</label>
									<div class="layui-input-block">
										<input type="text" name="QQ" required lay-verify="required" placeholder="请输入您的QQ账号" autocomplete="off" class="layui-input" value="{$t.QQ}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">Email：</label>
									<div class="layui-input-block">
										<input type="text" name="Email" required lay-verify="required" placeholder="请输入您的电子邮箱" autocomplete="off" class="layui-input" value="{$t.Email}">
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<div class="layui-form-item">
									<label class="layui-form-label">省市县：</label>
									<div class="layui-input-block add">
										<select  lay-verify=""  id="pca-hide-province"	lay-filter="province">
											{empty name="t.Province"}
											<option value="">请选择省</option>
											{else /}
											<option value="{$t.Province}">{$t.Province}</option>

											{/empty}




										</select>
									</div>
								</div>
							</td>

							<td>
								<div class="layui-form-item aqq ">
									<div class="layui-input-block add aq-1">
										<select  lay-filter="city" 	id="pca-hide-city">
											{empty name="t.City"}
											<option value="">请选择市</option>
											{else /}
											<option value="{$t.City}">{$t.City}</option>

											{/empty}



										</select>
									</div>
								</div>
							</td>
							<td>
								<div class="layui-form-item aqq aq-2">
									<div class="layui-input-block add">
										<select  lay-filter="area" 	id="pca-hide-area">
											<option value="">请选择县/区</option>

										</select>
									</div>
								</div>
							</td>
						</tr>
						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<label class="layui-form-label">街道地址：</label>
									<div class="layui-input-block">
										<input type="text" name="AddressDis" required lay-verify="required" placeholder="例如街道名称，门牌号码，楼层和房间号等信息" autocomplete="off" class="layui-input" value="{$t.AddressDis}">
									</div>
								</div>
							</td>
						</tr>

						<tr>
							<td colspan="4">
								<div class="layui-form-item">
									<div class="layui-input-block">
										<button type="button" onclick="sub()" class="layui-btn btn  layui-btn-danger" lay-submit lay-filter="formDemo">立即保存</button>
										<button type="button" class="layui-btn layui-btn-primary" style="margin-top: 10px;margin-left: 20px;"><a href="{:url('indexs')}">返回</a></button>
									</div>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
			
		</div>

		{:jq()}
		{:layui()}

<script>

               function sub(){

                   var data=$("#bd1").serialize();

                  $.post(" ",data,function(res){

                      if(res.code==200){

                          alert('修改成功');

                          window.location.href="{:url('indexs')}";




					  }else{

                          alert(res.msg);

					  }


				  });


			   }





</script>




	</body>

</html>